add_subdirectory(mgl)

add_library(lock lock.cpp)
target_link_libraries(lock mgl)

if(TENDIS_WITH_UNIT_TESTS)
add_executable(lock_test lock_test.cpp)
target_link_libraries(lock_test -Wl,--whole-archive commands -Wl,--no-whole-archive lock session session_ctx server gtest_main ${SYS_LIBS})
endif()
